// 预加载脚本
const { contextBridge, ipcRenderer } = require("electron");

contextBridge.exposeInMainWorld("desktop", {
  device: "desktop",
  closeWindow: () => ipcRenderer.send("close-window"),
  minWindow: () => ipcRenderer.send("min-window"),
  maxWindow: () => ipcRenderer.send("max-window"),
});
